package com.example.hand.mybatis.config;

import com.example.hand.mybatis.MeMybatisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableConfigurationProperties(MybatisPerporties.class)
public class MeMybatisAutoConfig {

    @Autowired
    MybatisPerporties mybatisPerporties;

    @Bean
    public String getLocalUrl(){
        MeMybatisService meMybatisService=new MeMybatisService();
        return meMybatisService.getMybatisPerportiesLocalUrl();
    }
}
